﻿using System.ComponentModel.DataAnnotations;

namespace K9Nano.Web.Accounts.Dto
{
    public sealed class UserRoleEditInput
    {
        /// <summary>
        /// 用户ID
        /// </summary>
        [Display(Name = "用户ID")]
        [Required(ErrorMessage = "{0}不能为空")]
        public string Id { get; set; }

        /// <summary>
        /// 角色列表
        /// </summary>
        [Display(Name = "角色")]
        [Required(ErrorMessage = "{0}不能为空")]
        public string[] Roles { get; set; }
    }
}